package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.db.domain.web.MpClientTransfer;
import com.ruoyi.db.mapper.web.MpClientTransferMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.service.IMpClientTransferService;

import javax.transaction.Transactional;

/**
 * 用户转账记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-27
 */
@Service
@Transactional(rollbackOn = Exception.class)
public class MpClientTransferServiceImpl implements IMpClientTransferService 
{
    @Autowired
    private MpClientTransferMapper mpClientTransferMapper;

    /**
     * 查询用户转账记录
     * 
     * @param id 用户转账记录主键
     * @return 用户转账记录
     */
    @Override
    public MpClientTransfer selectMpClientTransferById(Long id)
    {
        return mpClientTransferMapper.selectMpClientTransferById(id);
    }

    /**
     * 查询用户转账记录列表
     * 
     * @param mpClientTransfer 用户转账记录
     * @return 用户转账记录
     */
    @Override
    public List<MpClientTransfer> selectMpClientTransferList(MpClientTransfer mpClientTransfer)
    {
        List<MpClientTransfer> list = mpClientTransferMapper.selectMpClientTransferListPc(mpClientTransfer);
        return list;
    }

    /**
     * 新增用户转账记录
     * 
     * @param mpClientTransfer 用户转账记录
     * @return 结果
     */
    @Override
    public int insertMpClientTransfer(MpClientTransfer mpClientTransfer)
    {
        return mpClientTransferMapper.insertMpClientTransfer(mpClientTransfer);
    }

    /**
     * 修改用户转账记录
     * 
     * @param mpClientTransfer 用户转账记录
     * @return 结果
     */
    @Override
    public int updateMpClientTransfer(MpClientTransfer mpClientTransfer)
    {
        return mpClientTransferMapper.updateMpClientTransfer(mpClientTransfer);
    }

    /**
     * 批量删除用户转账记录
     * 
     * @param ids 需要删除的用户转账记录主键
     * @return 结果
     */
    @Override
    public int deleteMpClientTransferByIds(Long[] ids)
    {
        return mpClientTransferMapper.deleteMpClientTransferByIds(ids);
    }

    /**
     * 删除用户转账记录信息
     * 
     * @param id 用户转账记录主键
     * @return 结果
     */
    @Override
    public int deleteMpClientTransferById(Long id)
    {
        return mpClientTransferMapper.deleteMpClientTransferById(id);
    }
}
